package tcu.iot.gasmanage.common;

import lombok.Data;

import java.io.Serializable;

@Data
public class DownloadResult implements Serializable {
    private String downloadUrl;
    private String versionName;
    private int versionCode;

    public static DownloadResult update(String downloadUrl, String versionName, int versionCode) {
        DownloadResult result = new DownloadResult();
        result.setDownloadUrl(downloadUrl);
        result.setVersionName(versionName);
        result.setVersionCode(versionCode);
        return result;
    }
}
